package com.example.designpartten.decorator;

import lombok.extern.slf4j.Slf4j;

/**
 * @author hql
 * @date 2020/4/14 11:29
 */
@Slf4j
public class ConDrcorator2 extends Decorator {

    public ConDrcorator2(Compent compent) {
        super(compent);
    }

    public void method2() {
        log.info("method2方法修饰");
    }

    @Override
    public void doSomething() {
        method2();
        super.doSomething();
    }
}
